<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/common_java.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<%@include file="../common/common_meta.jsp" %>  
	    <meta name="keywords" content="投票,投票网,大众,民意,调查,">
		<%@include file="../common/common_css.jsp"%>
	    <title>分类投票-大众投票</title>
	</head>
	<body>
	   <jsp:include page="../common/common_header.jsp">
			<jsp:param name="active" value="vote_class"/>
		</jsp:include>
	    <section class="container">
	        <h3 class="mt-10">分类投票</h3>
	        <div class="line"></div>
	        <div class="responsive">
	            <div class="row cl">
	                <!-- left -->
	                <div class="col-md-8 col-md-offset-1">
	                    <div class="panel shadow panel-default radius mt-20">
	                        <div class="panel-body">
	                            <h4>投票列表</h4>
	                            <div class="line"></div>
	                            <table class="table table-border table-bg table-bordered radius table-striped table-hover mt-20">
	                                <thead>
	                                <tr class="text-c">
	                                    <th class="col1">序号</th>
	                                    <th class="col2">标题</th>
	                                </tr>
	                                </thead>
	                                <tbody>
		                                <c:forEach items="${page.content}" var="item" varStatus="status">
			                                <tr>
			                                    <th class="col1 text-c">${status.index+1}</th>
			                                    <td class="col2 text-l"><a href="${ctx}/vote/show/${item.id}" target="_blank" data-id="${item.id}" >${fn:escapeXml(item.title)}</a></td>
			                                </tr>
		                                </c:forEach>
	                                </tbody>
	                            </table>
	                            <div class="mt-10 text-r" data-totalPages='${page.totalPages}'  style="right:20px" id="pageCont"></div>
	                        </div>
	                    </div>
	                    <!--panel 1 end-->
	                </div>
	          		 <!-- right -->
	          		 <div class="col-md-2">
		                <jsp:include page="sidebar.jsp">
							<jsp:param name="active" value="vote_list"/>
						</jsp:include>
	                </div>
	            </div>
	        </div>
	    </section>
		<%@include file="../common/common_footer.jsp" %> 
		<%@include file="../common/common_js.jsp" %>
		<script type="text/javascript" src="${jsBase}/search/result.js" ></script>
		<script type="text/javascript" src="${jsBase}/common/formpage.js" ></script>
	</body>
</html>